//
//  RoadsideAssistanceDayCell.m
//  JxCarios
//
//  Created by xcq on 15/2/2.
//  Copyright (c) 2015年 xiongchuanqi. All rights reserved.
//

#import "RoadsideAssistanceDayCell.h"

@implementation RoadsideAssistanceDayCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

- (void)setInfo:(NSDictionary *)info{
    if (info) {
        NSString *str = @"￥";
        _info = info;
        _selete = NO;
        _shopName.text = [_info customObjectForkey:@"GOOD_NAME"];
        _shopPrice.text = [str stringByAppendingString:[_info customObjectForkey:@"CHEAP_PRICE"]];
        _shop_Id = [_info customObjectForkey:@"ID"];
    }
}

- (IBAction)checkAction:(id)sender {
    UIButton *btn = (UIButton *)sender;
    _checkBtn.selected = !_checkBtn.selected;
    _selete = _checkBtn.selected;
    if ([_delegate respondsToSelector:@selector(checkCallBack:andSeleted:)]) {
        [_delegate checkCallBack:self andSeleted:btn.selected];
    }
}
@end
